package com.javaapi.designmode.observer;

import java.util.ArrayList;
import java.util.List;

public abstract class Citizen {

	String help = "normal";
	List<IPliceMan> pliceMans = new ArrayList<IPliceMan>();

	public String getHelp() {
		return help;
	}

	public void setHelp(String help) {
		this.help = help;
	}

	abstract void sendMessage(String msg);

	public void register(IPliceMan pliceMan) {
		this.pliceMans.add(pliceMan);
	}

	public void unRegister(IPliceMan pliceMan) {
		this.pliceMans.remove(pliceMan);
	}
}
